#pragma once

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define def 3
#define add 2
enum INF {
	EXIT,
	ADD,
	DEL,
	SEARCH,
	MODIFY,
	SHOW,
	CLEAR,
	ORDER
};


struct PEOINFO {
	char name[10];
	char sex[5];
	int age;
	char tele[12];
	char addr[15];
};

struct CON {
	struct PEOINFO* pf;
	int count;
	int capacity;
};


void InitContact(struct CON* con);

void AddContact(struct CON* con);


void ShowContact(struct CON* con);

void DelContact(struct CON* con);
void SearchContact(struct CON* con);

void ClearContact(struct CON* con);
void ModifyContact(struct CON* con);

void OrderContact(struct CON* con);
void DestroyContact(struct CON* con);

void SaveContact(struct CON* con);